package com.bdqn.springbootjsp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * IndexController
 *
 * @author LILIBO
 * @since 2022-11-15
 */
@Controller
public class IndexController {

    @RequestMapping("/index")
    public String hello(Model model) {
        model.addAttribute("name", "Hello JSP");
        return "index";
    }
}
